home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / PaletteEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.8 KB  |  70 lines  |  [TEXT/MPS ]

  1. ; Version: 3.06
  2. ; Created: Friday, October 20, 1989 at 9:34:33 PM
  3. ;
  4. ; File: PaletteEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1987-1991
  8. ; All Rights Reserved
  9. ;
  10. ;___________________________________________________________________________
  11.  
  12.     IF &TYPE('__IncludingPaletteEqu__') = 'UNDEFINED' THEN
  13. __IncludingPaletteEqu__    SET    1
  14.  
  15. ; Palette Manager equates
  16.  
  17. ; Usage constants
  18. pmCourteous       EQU         $0000
  19. pmDithered        EQU         $0001
  20. pmTolerant        EQU         $0002
  21. pmAnimated        EQU         $0004
  22. pmExplicit        EQU         $0008
  23.  
  24. pmWhite            EQU            $0010
  25. pmBlack            EQU            $0020
  26.  
  27. pmInhibitG2       EQU         $0100
  28. pmInhibitC2       EQU         $0200
  29. pmInhibitG4       EQU         $0400
  30. pmInhibitC4       EQU         $0800
  31. pmInhibitG8       EQU         $1000
  32. pmInhibitC8       EQU         $2000
  33.  
  34. ; bit numbers for above
  35.  
  36. inhibitG2Bit    EQU        8
  37. inhibitC2Bit    EQU        9
  38. inhibitG4Bit    EQU        10
  39. inhibitC4Bit    EQU        11
  40. inhibitG8Bit    EQU        12
  41. inhibitC8Bit    EQU        13
  42.  
  43. ; palette update types
  44.  
  45. noPaletteUpdates        EQU        0
  46. allBackPaletteUpdates    EQU        1
  47. allForePaletteUpdates    EQU        2
  48. allPaletteUpdates        EQU        3
  49.  
  50. ; ColorInfo structure            ; Always access these fields through Palette manager calls!
  51.  
  52. ciRGB        EQU        $0000        ; RGBColor            [short] * 3
  53. ciUsage        EQU        $0006        ; usage                [short]
  54. ciTolerance    EQU        $0008        ; tolerance value   [short]
  55. ciDataFields EQU    $000A        ; three words of private data
  56. ciSize        EQU        $0010        ; size of the ColorInfo data structure
  57.  
  58. ; Palette structure                ; Always access these fields through Palette manager calls!
  59.  
  60. pmEntries    EQU        $0000        ; entries in pmInfo        [short]
  61. pmDataFields EQU    $0002        ; seven words of private data
  62. pmInfo        EQU        $0010        ; ColorInfo's            [ciSize] * pmEntries
  63. pmHdrSize    EQU        $0010        ; size of Palette header
  64.  
  65. ; Palette resource structure
  66.  
  67. plttEntries    EQU        $0000        ; entries in palette resource    [short]
  68. plltUpdates EQU        $0002        ; value passed to SetPalette    [short]
  69.  
  70.     ENDIF    ; ...already included